import { request } from '../utils/request';
import { apiVirtualSuccessAccess, useVirtualAccess } from '@/utils/tools';

export async function queryListData(params) {
  if (useVirtualAccess()) {
    const result = await apiVirtualSuccessAccess({
      data: [
        {
          intlineid: 32,
          chvname: '大学路中原路2号线',
          dtmintime: '2018-11-07T16:27:29.07',
          chvdrivername: '',
          chvphone: '',
          chvphone2: '',
          chvcarno: '豫A-',
          intsort: 1,
        },
        {
          intlineid: 31,
          chvname: '京沙快速路2号线',
          dtmintime: '2018-11-07T16:20:49.853',
          chvdrivername: '张亚鹏',
          chvphone: '15136192865',
          chvphone2: '17734809700',
          chvcarno: '豫A-690XS',
          intsort: 1,
        },
        {
          intlineid: 30,
          chvname: '郑东新区2号线',
          dtmintime: '2018-11-07T10:55:12.43',
          chvdrivername: '张振亚',
          chvphone: '15138655801',
          chvphone2: '',
          chvcarno: '豫A-J522U',
          intsort: 1,
        },
        {
          intlineid: 29,
          chvname: '龙子湖线',
          dtmintime: '2018-10-26T09:19:07.313',
          chvdrivername: '张彦虎',
          chvphone: '15939041888',
          chvphone2: '',
          chvcarno: '豫AD59006',
          intsort: 1,
        },
        {
          intlineid: 28,
          chvname: '龙湖镇',
          dtmintime: '2018-10-20T11:49:25.54',
          chvdrivername: '张彦朋',
          chvphone: '15188339438',
          chvphone2: '18003844414',
          chvcarno: '豫A-S232R',
          intsort: 1,
        },
        {
          intlineid: 27,
          chvname: '航空港区',
          dtmintime: '2018-10-20T11:49:11.837',
          chvdrivername: '刘新彦',
          chvphone: '13837111080',
          chvphone2: '17631399309',
          chvcarno: '豫AD59286',
          intsort: 1,
        },
        {
          intlineid: 26,
          chvname: '专线一',
          dtmintime: '2018-09-18T11:04:17.563',
          chvdrivername: '卜晓勇',
          chvphone: '13598825883',
          chvphone2: '15515834081',
          chvcarno: '豫A-XY219',
          intsort: 1,
        },
        {
          intlineid: 25,
          chvname: '航海路帝湖线',
          dtmintime: '2018-09-18T11:04:11.86',
          chvdrivername: '张彬',
          chvphone: '13526449555',
          chvphone2: '',
          chvcarno: '豫ASS310 ',
          intsort: 1,
        },
        {
          intlineid: 24,
          chvname: '京沙快速路沿线',
          dtmintime: '2018-09-18T10:25:28.657',
          chvdrivername: '赵可',
          chvphone: '15238619931',
          chvphone2: '',
          chvcarno: '豫AD59386',
          intsort: 1,
        },
        {
          intlineid: 23,
          chvname: '东风路中州大道',
          dtmintime: '2018-09-14T11:26:33.057',
          chvdrivername: '',
          chvphone: '',
          chvphone2: '',
          chvcarno: '',
          intsort: 1,
        },
        {
          intlineid: 21,
          chvname: '江山路连霍线',
          dtmintime: '2018-09-12T09:49:30.243',
          chvdrivername: '胡书凯',
          chvphone: '18595757025',
          chvphone2: '',
          chvcarno: '豫A ',
          intsort: 1,
        },
        {
          intlineid: 20,
          chvname: '马寨开发区线',
          dtmintime: '2018-09-11T10:52:28.743',
          chvdrivername: '卜晓勇',
          chvphone: '13598825883',
          chvphone2: '15515834081',
          chvcarno: '豫AXY219',
          intsort: 1,
        },
        {
          intlineid: 19,
          chvname: '金水路未来路线',
          dtmintime: '2018-09-11T10:24:55.313',
          chvdrivername: '李超峰',
          chvphone: '18530044981',
          chvphone2: '',
          chvcarno: '豫A N5B87',
          intsort: 1,
        },
        {
          intlineid: 18,
          chvname: '大学路中原路线',
          dtmintime: '2018-09-10T09:30:17.157',
          chvdrivername: '姜超峰',
          chvphone: '15038261790',
          chvphone2: '',
          chvcarno: '豫A 9R89C',
          intsort: 1,
        },
        {
          intlineid: 17,
          chvname: '文化路迎宾路线',
          dtmintime: '2018-09-10T09:23:02.293',
          chvdrivername: '孙建新',
          chvphone: '18638768358',
          chvphone2: '13932002017',
          chvcarno: '豫A 315NT',
          intsort: 1,
        },
        {
          intlineid: 15,
          chvname: '京广路南三环线',
          dtmintime: '2018-09-03T11:30:46.357',
          chvdrivername: '郭俊凯',
          chvphone: '15378788025',
          chvphone2: '18236105320',
          chvcarno: '豫AD58826',
          intsort: 1,
        },
        {
          intlineid: 14,
          chvname: '三全路沿线',
          dtmintime: '2018-09-03T11:16:20.297',
          chvdrivername: '胡胜利',
          chvphone: '13673941048',
          chvphone2: '15822795659',
          chvcarno: '豫A 3J95V',
          intsort: 1,
        },
        {
          intlineid: 13,
          chvname: '中牟线',
          dtmintime: '2018-08-29T22:37:20.307',
          chvdrivername: '王彬彬',
          chvphone: '15093333433',
          chvphone2: '',
          chvcarno: '豫A D08112',
          intsort: 1,
        },
        {
          intlineid: 12,
          chvname: '紫荆山花园路线',
          dtmintime: '2018-08-21T10:30:58.633',
          chvdrivername: '张国选',
          chvphone: '15981888129',
          chvphone2: '',
          chvcarno: ' 豫AZ5J60',
          intsort: 1,
        },
        {
          intlineid: 10,
          chvname: '郑东新区',
          dtmintime: '2018-08-08T10:51:00.943',
          chvdrivername: '李帮兵',
          chvphone: '15515593635',
          chvphone2: '',
          chvcarno: '豫A',
          intsort: 1,
        },
        {
          intlineid: 8,
          chvname: '大河路连霍高速线',
          dtmintime: '2018-07-20T19:32:53.35',
          chvdrivername: '宋师傅',
          chvphone: '18734770655',
          chvphone2: '',
          chvcarno: ' 豫A K251X',
          intsort: 1,
        },
        {
          intlineid: 7,
          chvname: '西线',
          dtmintime: '2018-07-19T18:49:18.867',
          chvdrivername: '薛军',
          chvphone: '15903660718',
          chvphone2: '19937408708',
          chvcarno: '豫A51EV9',
          intsort: 1,
        },
        {
          intlineid: 6,
          chvname: '===========测试==============================',
          dtmintime: '2018-07-09T23:16:31.797',
          chvdrivername: '张仪',
          chvphone: '15890057772',
          chvphone2: '',
          chvcarno: '',
          intsort: 1,
        },
        {
          intlineid: 5,
          chvname: '东风路丰庆路线',
          dtmintime: '2018-06-29T18:11:17.063',
          chvdrivername: '王伟',
          chvphone: '15837828728',
          chvphone2: '',
          chvcarno: '豫B EV689',
          intsort: 5,
        },
        {
          intlineid: 0,
          chvname: '待分配',
          dtmintime: '2018-06-29T18:11:17.063',
          chvdrivername: ' ',
          chvphone: ' ',
          chvphone2: null,
          chvcarno: null,
          intsort: 1,
        },
        {
          intlineid: 4,
          chvname: '国基路沿线',
          dtmintime: '2018-06-29T10:15:48.113',
          chvdrivername: '聂红军',
          chvphone: '18838901203',
          chvphone2: '',
          chvcarno: '豫A EW262',
          intsort: 1,
        },
        {
          intlineid: 3,
          chvname: '经开区',
          dtmintime: '2018-06-27T23:26:49.47',
          chvdrivername: '李鹏',
          chvphone: '15738322370',
          chvphone2: '',
          chvcarno: ' 豫A NQ262',
          intsort: 1,
        },
        {
          intlineid: 2,
          chvname: '陇海路工人路',
          dtmintime: '2018-06-27T22:59:57.903',
          chvdrivername: '吕星星',
          chvphone: '18037784080',
          chvphone2: '18538700332',
          chvcarno: '豫A 662JY',
          intsort: 1,
        },
        {
          intlineid: 1,
          chvname: '天河路大河路线',
          dtmintime: '2018-06-27T22:56:49.967',
          chvdrivername: '张杰',
          chvphone: '15003861219',
          chvphone2: '',
          chvcarno: '豫A 921DB',
          intsort: 1,
        },
      ],
    });

    return result;
  }

  return request('/Line/GeLineList', {
    method: 'POST',
    body: params,
  });
}

/**
 * 占位函数
 *
 * @export
 * @returns
 */
export async function empty() {
  return {};
}
